Codeflash can automatically optimize your code when new pull requests are opened. To be able to scan new code for performance optimizations, Codeflash requires a GitHub action workflow to be installed which runs the Codeflash optimization logic on every new pull request. If the action workflow finds an optimization, it communicates with the Codeflash GitHub App through our secure servers and asks it to suggest new changes to the pull request. This is the most useful way of using Codeflash, where you set it up once and all your new code gets optimized. So setting this up is highly recommended.

Prerequisites

Before you begin, make sure you have:βœ… A Codeflash API key from the Codeflash Web Appβœ… Completed local installation with codeflash initβœ… A Python project with a configured pyproject.toml file

Setup Options